
<script type="text/javascript" src="/js/dtree.js"></script>
<style type="text/css">
#main table {
	border-top:1px #666666 solid;
	border-right:1px #666666 solid;
}
#main table tr:hover td { background: #FFFB82; cursor:pointer; color:#000000;}/*隔行换色鼠标经过效果*/
#main td {
	border-left:1px #666666 solid;
	border-bottom:1px #666666 solid;
	height:29px;
	overflow:hidden;
}
</style>
<link rel="StyleSheet" href="/css/dtree.css" type="text/css" />
<table width="90%" style="margin-top:20px;" border="0" align="center" cellpadding="10" cellspacing="0">
	<tr>
		<td>
		<div id="main">
		<form action="/project/adminModifyScore.do" method="post">
		 <input type="hidden" name="treeId" value="$tree.id" />
  		 <input type="hidden" name="projectId" value="$project.id" />
 		 <input type="hidden" name="viewUserId" value="$viewUser.id" />
			<h3>评分详情查看</h3>
			<fieldset>
				<table width="100%" border="0" cellpadding="0" cellspacing="0">
					<tr style="color:#FFFFFF">
						<td height="30" colspan="4" align="left" valign="middle" bgcolor="#333333">　<strong>项目基本信息</strong></td>
			    	</tr>
					<tr>
                      <td width="10%" height="30" align="center">项目名称:</td>
					  <td width="40%">&nbsp;$!project.name</td>
					  <td width="10%" align="center">项目状态:</td>
					  <td width="40%">&nbsp;#if($!userProject.status==2)已完成#else评分中#end</td>
				  </tr>
					<tr>
                      <td height="30" align="center">建设单位:</td>
					  <td>&nbsp;
					  #if($!buildUnitScore!=0)
                        $!project.buildUnit
                        <span style="color:red;">$!buildUnitScore</span> 分
                        #else
                        	无
                        #end
					  </td>
					  <td align="center">施工单位:</td>
					  <td>&nbsp;
					   #if($!constructUnitScore!=0)
                        $!project.constructUnit
                        <span style="color:red;">$!constructUnitScore</span> 分
                        #else
                        	无
                        #end
					  </td>
				  </tr>
					<tr>
                      <td height="30" align="center">设计单位:</td>
					  <td>&nbsp;
					   #if($!designUnitScore!=0)
                        $!project.designUnit
                        <span style="color:red;">$!designUnitScore</span> 分
                        #else
                        	无
                        #end
					  </td>
					  <td align="center">监理单位:</td>
					  <td>&nbsp;
					   #if($!supervisorUnitScore!=0)
                        $!project.supervisorUnit
                        <span style="color:red;">$!supervisorUnitScore</span> 分
                        #else
                                                                       无
                        #end  
					  </td>
				  </tr>
					<tr>
					  <td height="50" align="center">评分人员:</td>
				      <td>&nbsp;$user.realName</td>
				      <td align="center">开始时间:</td>
				      <td>&nbsp;$DateUtil.formatDate($!project.startTime,"yyyy-MM-dd") </td>
			    	</tr>
			    	<tr>
					  <td height="50" align="center">总分:</td>
				      <td>&nbsp;<span style="color:red;">$!totalScore</span> 分</td>
				      <td align="center"> &nbsp;</td>
				      <td>&nbsp; </td>
			    	</tr>
				</table>
				<h3 style="margin-top:10px;"></h3>
				<div style="width:100%;">
					<ul>
						<li style="width:30%; float:left;">
						   <div class="dtree">
			                  <p>
			                    <a href="javascript: d.openAll();">全部展开</a> |
			                    <a href="javascript: d.closeAll();">全部收起</a>
			                  </p>
			                  <script type="text/javascript">
			                  <!--
			                     d = new dTree('d');
		                        d.add(0, -1, '评分项目');
		                        #foreach($tree in $treeList)
		                          #if($tree.hasScoreItem==true)
		                            #if($allProjectItemTreeMap.containsKey($tree.id))
		                            d.add($tree.id, $tree.pid, '$tree.cateName', '/judge/scoreProjectByPersonFinish.jsp?projectId=$project.id&treeId=$tree.id','','_self');
		                            #end
		                          #else
		                            d.add($tree.id, $tree.pid, '$tree.cateName', '/judge/scoreProjectByPersonFinish.jsp?projectId=$project.id&treeId=$tree.id','','_self','/images/folder.gif', '/images/folderopen.gif');
		                          #end
		                        #end                        
		                        document.write(d);
			                  //-->
			                  </script>
			                </div>
						</li>
						<li style="width:70%; float:left;">
						<table width="100%" border="0" cellpadding="5" cellspacing="0">
				  <tr style="color:#FFFFFF">
					<td width="15%" align="center" valign="middle" bgcolor="#333333"><strong>所属项目</strong></td>
				    <td width="60%" align="center" valign="middle" bgcolor="#333333"><strong>评价名称</strong></td>
				    <td width="10%" align="center" valign="middle" bgcolor="#333333"><strong>设定分值</strong></td>
				    <td width="15%" align="center" valign="middle" bgcolor="#333333"><strong>扣分</strong></td>
				  </tr>
				  #foreach($item in $itemList)
                      <tr align="center">
                        <td   height="20" align="center" bgcolor="#FFFFFF">
                          $tree.cateName
                        </td>
                        <td   align="left" bgcolor="#FFFFFF">
                          $item.scoreItem.itemName
                        </td>
                        <td   align="center" bgcolor="#FFFFFF">
                          $item.score
                        </td>
                        <td align="center" bgcolor="#FFFFFF">
                          #if($hasScoreItemMap.containsKey($item.scoreItem.id))
                          $hasScoreItemMap.get($item.scoreItem.id).decScore
                          #else
                          0
                          #end
                        </td>
                      </tr>
                      #end
				</table>
						</li>
					</ul>
				</div>
			</fieldset>
		</form>
		</div>
		</td>
	</tr>
</table>

